/*------------------------------------------------------
                hou_elearningGEN beta v1.0
Author: xtrung.net@gmail.com
Write On: 04/27/2008
Create On:4/13/2012 11:22:46 AM
------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
namespace hou_elearning.Entity
{
    public class Baihoc_SlideEntity
    {
        public Baihoc_SlideEntity()
        {
            m_pk_ibaihoc_slideid = 0;
            m_isothutu = 0;
            m_fk_ibaihocid = 0;
            m_fk_islideid = 0;
        }
        private Int64 m_pk_ibaihoc_slideid;
        public Int64 PK_iBaihoc_SlideID
        {
            get { return m_pk_ibaihoc_slideid; }
            set { m_pk_ibaihoc_slideid = value; }
        }
        private short m_isothutu;
        public short iSothutu
        {
            get { return m_isothutu; }
            set { m_isothutu = value; }
        }
        private Int64 m_fk_ibaihocid;
        public Int64 FK_iBaihocID
        {
            get { return m_fk_ibaihocid; }
            set { m_fk_ibaihocid = value; }
        }

        private Int64 m_fk_islideid;
        public Int64 FK_iSlideID
        {
            get { return m_fk_islideid; }
            set { m_fk_islideid = value; }
        }

        #region Comparison
        public static List<Baihoc_SlideEntity> Sort(List<Baihoc_SlideEntity> list, String SortExpression, String SortDirection)
        {
            string strComparisonAttrb="COMPARISON_"+SortExpression;
            PropertyInfo propInfo= typeof(TacvuEntity).GetProperty(strComparisonAttrb);
            if (propInfo != null)
            {
                list.Sort(propInfo.GetGetMethod().Invoke(null, null) as Comparison<Baihoc_SlideEntity>);
                if (SortDirection == "DESC")
                    list.Reverse();
            }
            return list;
        }
        #endregion
    }
}
